﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class DiaOcDTO
    {
        public int MaDiaOc { get; set; }
        public int MaLoaiDiaOc { get; set; }
        public string DiaChiDiaOc { get; set; }
        public float DienTichDat { get; set; }
        public float DienTichXayDung { get; set; }
        public string Huong { get; set; }
        public string ViTri { get; set; }
        public string MoTa { get; set; }
        public int TrangThaiBan { get; set; }
        public string GiaBan { get; set; }
        public int GiayPhepXayDung { get; set; }
        public int GiayPhepHoanCong { get; set; }
        public int GiayChungNhanQuyenSuDungDat { get; set; }
        public int GiayChungNhanSoHuuNha { get; set; }
        public int HopDongMuaBan { get; set; }
        public int MaKH { get; set; }
        public int TrangThaiDangKy { get; set; }

        public DiaOcDTO(int _Madiaoc, int _Maloaidiaoc, string _Diachidiaoc, float _Dientichdat, float _Dientichxaydung, string _Huong,
    string _Vitri, string _Mota, int _Trangthaiban, string _GiaBan, int _GiayPhepxaydung, int _GiayPhephoancong,
    int _GiayCNQSDDat, int _GiayCNSHNha, int _Hopdongmuaban, int _Makh, int _Trangthaidangky)
        {
            MaDiaOc = _Madiaoc;
            MaLoaiDiaOc = _Maloaidiaoc;
            DiaChiDiaOc = _Diachidiaoc;
            DienTichDat = _Dientichdat;
            DienTichXayDung = _Dientichxaydung;
            Huong = _Huong;
            ViTri = _Vitri;
            MoTa = _Mota;
            TrangThaiBan = _Trangthaiban;
            GiaBan = _GiaBan;
            GiayPhepXayDung = _GiayPhepxaydung;
            GiayPhepHoanCong = _GiayPhephoancong;
            GiayChungNhanQuyenSuDungDat = _GiayCNQSDDat;
            GiayChungNhanSoHuuNha = _GiayCNSHNha;
            HopDongMuaBan = _Hopdongmuaban;
            MaKH = _Makh;
            TrangThaiDangKy = _Trangthaidangky;
        }
        //Update, 
        public DiaOcDTO(int _Madiaoc, int _Loaidiaoc, string _Diachidiaoc, float _Dientichdat, float _Dientichxaydung,
            string _Huong, string _Vitri, string _Mota, string _GiaBan, int _GiayPhepxaydung,
            int _GiayPhephoancong, int _GiayCNQSDDat, int _GiayCNSHNha, int _Hopdongmuaban)
        {
            MaDiaOc = _Madiaoc;
            MaLoaiDiaOc = _Loaidiaoc;
            DiaChiDiaOc = _Diachidiaoc;
            DienTichDat = _Dientichdat;
            DienTichXayDung = _Dientichxaydung;
            Huong = _Huong;
            ViTri = _Vitri;
            MoTa = _Mota;
            GiaBan = _GiaBan;
            GiayPhepXayDung = _GiayPhepxaydung;
            GiayPhepHoanCong = _GiayPhephoancong;
            GiayChungNhanQuyenSuDungDat = _GiayCNQSDDat;
            GiayChungNhanSoHuuNha = _GiayCNSHNha;
            HopDongMuaBan = _Hopdongmuaban;
        }
        public DiaOcDTO(int _Madiaoc, int _Trangthaidangky)
        {
            MaDiaOc = _Madiaoc;
            TrangThaiDangKy = _Trangthaidangky;
        }


        //Add
        public DiaOcDTO(int _Maloaidiaoc, string _Diachidiaoc, float _Dientichdat, float _Dientichxaydung, string
            _Huong, string _Vitri, string _Mota, int _Trangthaiban, string _GiaBan, int _GiayPhepxaydung,
            int _GiayPhephoancong, int _GiayCNQSDDat, int _GiayCNSHNha, int _Hopdongmuaban, int _Makh, int _Trangthaidangky)
        {
            MaLoaiDiaOc = _Maloaidiaoc;
            DiaChiDiaOc = _Diachidiaoc;
            DienTichDat = _Dientichdat;
            DienTichXayDung = _Dientichxaydung;
            Huong = _Huong;
            ViTri = _Vitri;
            MoTa = _Mota;
            TrangThaiBan = _Trangthaiban;
            GiaBan = _GiaBan;
            GiayPhepXayDung = _GiayPhepxaydung;
            GiayPhepHoanCong = _GiayPhephoancong;
            GiayChungNhanQuyenSuDungDat = _GiayCNQSDDat;
            GiayChungNhanSoHuuNha = _GiayCNSHNha;
            HopDongMuaBan = _Hopdongmuaban;
            MaKH = _Makh;
            TrangThaiDangKy = _Trangthaidangky;
        }
        //Delete
        public DiaOcDTO(int _Madiaoc)
        {
            MaDiaOc = _Madiaoc;
        }
        public DiaOcDTO()
        {
            // TODO not implememt
            throw new NotImplementedException();
        }
         
    }
}
